#include <stdio.h>
#include <unistd.h>

int main()
{
	printf("打印\n");
	alarm(5);//5秒后默认终止进程
	pause();//将进程处于睡眠状态
	while(1)
	{
		sleep(1);
		printf("循环打印\n");
	}
	return 0;
}
